home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / flying-6.11 / xpball.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-30  |  793 b   |  33 lines

  1. #ifndef _graph_h
  2. #    include "graph.h"
  3. #endif
  4. //
  5. // Erweiterung der PBall-Klasse um X-Spezifika
  6. //
  7. class PBall : public PBallTop {
  8.     public:
  9.         PBall( PBallType mode=BillardQueue, char *display=0l );
  10.         ~PBall();
  11.  
  12.     protected:
  13.         virtual void Update();
  14.  
  15.         virtual void Warp( const Vec2 &dest );
  16.         virtual void RedrawPointer();                        // Mausanzeige
  17.         virtual void SetPointer( int x, int y );        // Mausanzeige
  18.  
  19.         static int        instance_count;
  20.         static int        pwidth, pheight;
  21.         static Pixmap    pmap;
  22.         static GC        gc_bit;
  23.         virtual void StartQueue(const Vec2 &end, const Vec2 &s1, const Vec2 &s2);
  24.         virtual void MoveQueue(const Vec2 &end, const Vec2 &s1, const Vec2 &s2);
  25.         virtual void EndQueue();
  26.         virtual void DrawQueue();
  27.  
  28.     private:
  29.         struct _XDisplay    *rem_dpy;
  30.         int                    scr;
  31.         Real                    w2n_x, w2n_y;
  32. };
  33.